package com.data.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface DataMapper {

    List<Map> listTables(@Param("schema") String schema);

    List<Map> listSchemas();

    List<String> listTableColumn(@Param("schema") String schema,
                                      @Param("table") String table);

    List<Map> listTableData(@Param("schematable") String schematable);

    int getAllCount(@Param("schematable") String schematable);

    Object createSchema(@Param("schema") String schema);

    Object createTable(@Param("createTable") String createTable);
}
